package com.extweb4j.core.model;

/**
 * 投票
 * @author Administrator
 *
 */
public class ExtVoteOption extends CoreModel<ExtVoteOption>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static ExtVoteOption dao = new ExtVoteOption();
	
	public String getNameById(String oid){
		StringBuffer buffer = new StringBuffer();
		buffer.append(" SELECT name FROM ext_vote_option WHERE id=?");
		return ExtVoteOption.dao.findFirst(buffer.toString(),oid).getStr("name");
	}
}
